import { postMethod, getMethod } from "../../../utils/http";

export async function getList() {
    return await postMethod(`xyxy/wxapp/web/turntable/list`, {});
}


export async function add(data = {}) {
    return await postMethod(`xyxy/wxapp/web/turntable/edit?name=${data.name}&jifen=${data.jifen}&probability=${data.probability}&image=${data.image}`, {
        params: {
            ...data,
        }
    });
}

export async function queryItem(id) {
    return await postMethod(`xyxy/wxapp/web/turntable/detail?id=${id}`, {});
}

export async function edit(data) {
    return await postMethod(`xyxy/wxapp/web/turntable/edit?name=${data.name}&jifen=${data.jifen}&probability=${data.probability}&id=${data.id}&image=${data.image}`, {
    });
}

export async function del(params) {
    return await postMethod(`xyxy/wxapp/web/turntable/del`, {
        params,
    });
}

// 

